Added message deletion
Implemented setting save function