fix page calling logic in initialize