St Johnstone manager Tommy Wright defended himself over the row with Dundee United counterpart Jackie McNamara during the 1-0 win at Tannadice.