added spinner to ajax loading