updated ui constructor with options, array sets ui elements inside panel