add document referrer code, fix aria labels for modals