add emoticons and table function