finish a drawerLayout function