Fixes to import submit and import cancellation

Import submit with ajax upload fixed. Cancel now redirects to directivepage and various errors have been corrected.