created sidebar on dashboard and also logout method