None type error, first tab display