ajaxified deletion of items from a specific menu, and refactored