save changes
add main gui code, small changes needed