refactoring actionlisteners into actions, menu shortcuts