added before action to Post controller and added dependant destroy to childer of both posts and answers