Fixes for bug with submission of files, performance speed ups on angular page loading