added mobile/tablet functionality for widgets