created views, added functionality to models