Refactor:Remove unused variable. Use click method