added delete option for messages and fixed time offset