Remove some unused variables

Remove some unused variables in the view library and page model.