toggle the hidden class for notifications