using postinvalidate instead of invalidate
Making highlighted degree configurable via xml