add custom dialog and actionbar