Implement the edit/destory post action in emberapp