update flash layout