fix module and theme management, add preview