more stuff with views

added complex querying and working on making the attributes dynamic