quick fix, changing button state