Delegated some common communication and ui code. Binded UI in dials.html between orientations.