make sure to account for all day events
clean up some code in detail view