tidying up gui