fixes button click