Fixed object ownership, c++ now handles the destruction of the objects which were passed into qml instead of javascript engine which garbage collected the object randomly and caused app to crash, also some ui stuff added