made some simple refactoring of files and added redirection link to users page in index template