Added category clear functionality to new and update popover controllers.