Somehow UI var is not working inside a view

Signed-off-by: Arief M Utama <arief.utama@gmail.com>