trying to make the overlay work for a one-page site. currently using a lot of code