fixed some small stuff in adprofile
 added some error handling for editing