separate widgets from main file