added profile editing function