Partially complete UI; needs to be refactored to use object-oriented practices.