setup views and public