applying styling to fileupload and fix for weird bug where no more than 1 resource can be allocated in a module.
Minor fix for reappearing template popup