setup views code