shitty javascript but working edits and updates for listing show page