added a few more client side functionality