revert changes for post resource button