Refactor title and footer