basic functionality in gui