fix/new look gui. proc add median calc