MATLAB: New Script keeps opening in new window instead of a tab

MATLAB

I accidentally did something on my script file and now when I hit new script, it opens a new script in a new window instead of a new tab. Can someone tell me what I did and how to reverse it.I am using R2012b software package