in haskell: format the main area, added menu (no functionality of menu yet)