adding updating to frontend