show check in menu and save state on preferences