only enable previewbuttons when template is selected
move modal to extra template
Update jquery and add map. Fixes #51