Made routes in main form automaticly update and made it so a route could be deleted
Added checks so it can be used when mainFormIn is null