views functionality. bug fixes