updated the code with navigation drawer