Added redirect on submission delete;

- fixed dir reference for the main submission file
- updated error code references for file submission