Made save and saveas button working.