fix buttons click