more progress on permissions dialog