started implementing and testing view query based functionality