St Johnstone manager Tommy Wright says he was flattered by the interest from Dundee United but a new deal at the club was always on the cards.