removed debug puts and cleaned nil logic in appointment#index