Delete and replace fragments dynamically