moving upload click handler to gladbooks.js