add actionlistener

add it actionlistener to menu items and create separate methods for all
four menus