MailComponent based on UIInput fixed.

Noticed bug with restoring pages, need to be fixed