Added option 'visible' to actions

so that the user can tell if the action should be visible or not.