Added 'supress warnings' to some functions in traitpreview. Optimized imports.