refactoring quick add form