How can I fix my thumb stick after it popped off?

Recently borrowed a friends controller after mine just stopped working and while I was playing I heard a pop and the thumb stick flew off. It was only the top and I think I linked the image. Would it be possible to glue it or something without damaging the controller? What else could I do?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0