replaced checkbox with button