refactored to create title page