fix tabs
improve device model spec
refactor device and connection