more custom switch without any js