better implementation of title property for page