added logout function to profile navbar view