ajax loading on activities when changing between pages