Remove console log when chaning states