added toggle and sharing dialogue