defined update_message function for abstractc controller