Add save config function to main window

Signed-off-by: James Tasker <james_tasker1@hotmail.com>