Finish right navbar and  function logout