adds pages before login and route post login
changes event to short link