added remove after publish option