Updated rendering of the personal menu

Also added a few comments to the various rendering functions and fixed some global var usage.