May have added the view portion

Tried to make the view function work.