put inside if incase widget is not loaded