simplifying initialization code for page
more simplification