Small fixes on managers,math,misc, with the biggest change in ButtonManager