added ruler,fixed remove bug,fix click&selected bug