replace select div with input for sorting events