intent working but app is slow