working 3 page app