changed status messages to cookies