Added 'SelectLeafOnly' feature to element selector