upload control, invokeFlashMessage(), getUrlParams(), refactoring directories