fix a bug from views to view
add a permission handle