fixed calculator button behavior