save/restore input text functionality added