added gui elements but there seems to be a weird bug