add main class and settings page