Added model passing to views