fix annoying issues
refactor duplicate code in template function
various small fixes
add notification icon
set composited style when creating the window to remove annoying flicker