make input box compatible with buttons