Make ui_messagebox_n static
Convert vsprintf to vsnprintf
Print function and line when calling Error
Remove unused multi functions