add max-width to input field (for smartphones), allow autoset of active tab