fix iframe size calculation and overall improvement of publish page