more functions to input widget