highlight active tab, error handling