Converting input to button