implemented language selector and toggle button