correct the json markdown problem by call helper methods for controller