added defaults
fixed generic form ajax functions