whoopsie
removed spaghetti
show preview, hide select - on file change.
restructure html
remove non-used js function
close on cancel
refresh page on cancel.