trying to check application is in background after button pressed