loader class to handle the views and models