convert button to input