Add level bar widget

add LevelBar Widget

Also add proper guards for compilation with older versions.