added the link to view the sent mail. also renamed some weird variable...
some edits to controller redirections. Please dont use header()