tried to fix buttn click bug (not fixed yet)