ADDING VISUAL REFRESH FUNCTION AND A MARKER