modify button status