added profile editing functionality