factor page alignment into function call...place near existing call