Fixed issue#20 related to tab refresh state