changed tab order to be last for clear buttons
adjusted tablet detection at startup only