added selectedVal() with $compile