smoothed button inputs, fixed a bug