Added tablets support.

Base support for tablets devices.
Rework UI for DoF calculator.