moved smiley and sad face logic to onframe