Refactoring of compat library. Correct checking of tablet/mobile device
Changed header buttons with anchors