Improve the permissions settings page - fix #36