added client side view stuff