Can't get the edit or view to work