removign extraneous ajax call and variables