Sketch Menu gets filled on openeing sketches

Lots of TODOs (refer code)
Find a neater implementation... That while loop isn't to my satisfaction