Change type of popup