added debug in the designer