Added click and long-click listener in single-switch interface.