[ADD] GUI: automatically close opening elements. #792