create incident functionallity