add jshint checking
fix all jshint errors
fixed button size
refactor the actions out of the menu