set the nav class while goto action