Added library to improve switch toggle