Working save button
Made it open a new window