common code with ST2 version, added more menu's items