Migrates app to fragments.