modify type selector in edit
bugfix and hilight selected commit