add event-listner for post and comment entities