make menu bar as tempalte and add scroll to main view