Made changing selected profile work