refactoring all methods to use the newly created findElement