Full_rewrited_OnOpen