added a to_s method for pages