add main to Pages