updated to keep transparency on unfocus