put permissions warning into a proper warning box