Refresh button added to Tab1, code cleanup