added setValue and clear function for inputs