button behaviour part1
fix -Wfloat-equal compiler warnings