Ajax method to get html response moved out of clickaddbutton. Refactored other method names