fix bug size of popup and size inside element of popup