Fixes bugs in edit and updates show
Fixes Javascript bug and displays text in proper format