added contact editing functionality and styling