added meal selector logic, fixed ajax loading