Added logic for post details to work. made it look prettier too.