now ask for permissions before modal shows