added code for remove notices