simplified version for framed view