added option screen and completed email functionality