move class to views