pass permissions to view, fix preview for admin