Dialog can be shown or hidden with custom action

User can pass custom action to show and hide methods, but old non parametric methods will use default fade action.