fixing navigation with ajax