improved the ProfileAdapter to work with the updated NetworkManager and Profile classes