Fix loading button display on navigation