adding more client side logic