fixed some links, and display alert when user is inactive