finalising gui