Implemented Save Chat functionality in the frontend