removed ui related code.