Cleaned up main page file