Before removing ajax calls