added event when posts are loaded