added time button & fixed message deletion