Add functionality for the edit button (and syncronize modifications of post with database and other clients)