This is all viewlogic we should rip this out