Add ajax contorller dealing with form template for ajax.