Implement action stack side bar and context menu.
Sort templates by id.