refactor, refactor, refactor
adds embed function to header button