testing view functionality