improved focus of input elements