refactored #can_edit? and mealbook routes