Included client side logic in main view