add in removed code, re-enable ajax