handled code to select all header