added profile page, redirect when going to add or profile page