DO NOT MERGE: Implemented new in-canvas view buttons

The ```CreateCodeBlockNode``` method below is moved from above without any changes.