Adding API for editing messages