fixing name device modal bug on app load