readds code that auto opens overlay