added save export butons, implemented save functionallity mixed with export