Set-up custom resize + better use of pubsub