adding hook for use at top of page