change of ui locator
adding a catch block to catch errors