made project into one page app with ajax calls