rough try for memory in GUI, fix tiny bug of GUI