moved method to pagebuilder from common trait