move close button size to static constant
add isAdvertisement parameter