updated js for show page