rework attachment UI to use a dialog, update published actionbar icon