moved script in show page so it wasn't contained in the table