Generic GUI code for the TTM4115 term assignment