Handle all input elements