adding some comments
fixing popup scaling repositions