clean code pre-ajax add button