renamed direcotry, renamed ui variable to gui