adding base codes for UI