Changed the behaviour of title when opening and closing the navigation drawer