implement ajax calls on pages in navbar
clean up messy html