Attributes now saves and loads from preferences

Missing:
- closing and opening of these windows.
- Fonts.
- more testing i assume mr livingstone.