checked for bugs - need to update front end of logged in pages