begin to add edit functional for post