change frame setup if error frame