cleanup setupButtonSettings method.