refactor showDialog method in base activity