Dialog can be showed or hidden with custom action