Initializing pages controller