Applied styels to add category dialog and refactored javascripts