Tidied up blank state code and footer a little