fix bugs and get the code working for Emoticon features