Auto select pencil if selected an item from item palette