Updated edit button jquery to show preview mode