static logic to pages