styled menu bar, and added title
better logic for error handling
added title in menu