generic page pretty code