added the saving method and a UI for creating posts