fix angularJS controller for save new category in different section