Fixed issue where last tab would not hide message div