Add valuechanged signal. Move setupui call