added a lot of stuff for views, now its kinda working