register works for all pages