A time dependent RPA-theory for heavy ion reactions