added toggle functionality wit append and prepend