JBIDE-17083 Visual Preview: Implementing scrolling and ui selection for refresh options (automatic refresh / refresh on save). Refactoring