fix bug with displaying views