update not to use ajax to display code