replaced click method