update ajax js to take into account the new changes on show page