finishing permission implementation