cleaner js code
confirmation on deleting profile