add line modal now changes on type change