Updated elementVisible, elementHidden and elementCoordinates

worked on visible/hidden functionality and how elementCoordinates is
called