Reverting callbacks to original style as the problem was in JS not in the callbacks

Adding callback for preview function, removing auto preview

Changing size of window to make it smaller