Quick fix for set state button and date formats