implementing the new algorithm

changed the ui popup options and ways to change operators in the
ui..still some issues with changing them.
todo:implement backend: the main algorithm.