added joint require on views
refactory

comments and require fix