limit state max length
clean up css