File handling and error binding and css grouping