refactoring controllers, adding bs theme to forms