refactor
moved some logic to model, started to add live bindings
fixing more bugs
moved ref logic to models