Extract duplicate code re new text dialog
Tweet new item on clicking add
Just whitespace fixes