modified client side structure to use flux-esque type of thing. need to wire up server