complete app and write permission check, xib update