move views to lib