adds sidebar view to main screen