Fixed a bug in send_email() and added generic pages handler to site controller