Updated GUI and fixed duplicate entries for contacts