feature for chosing potential is inserted in the gui