making options and running ajax