updating layouts and fragments