add input and button for encode and decode