Adding page controller