finished GUI functions, ready to test