Create main and details page