Fix check of file type
Use tab classes from login