fixed few bugs and add edit profile feature