JBIDE-17083 Visual Preview: Implementing scrolling and ui selection to the element for refresh options. Refactoring