added icons and saving to a file code