removed some no longer needed if statements (since actions can only be run if they are not disabled)
turned copyLink action into a DisableableAction
turned copyImageLocation action into a DisableableAction
removed some apparently not needed pieces of code
made actions cut, copy, paste, undo and selectAll disableable