set transparency based on activity