change the show post api to show html instead of json