add authorization stuff to new pages