removed useless piece of code
added the smileys and factorized the tab creation