Edit button on show page now sends query in through jquery