updating element path after performing action on tag