added anchor scroll logic to top for menu