Added the email function and finished it. With a null error when hiting the cancel button. Added the URL function as well.