add action hook for the navbar