Added "edit" mode for posts