make views working with controller