add pen icon to memo app header and make toggle function better