having trouble with view