fixed persisting variables due to unnecessary jquery ajax handlers