added route to menu_publish and added a bit of error handling