added get account data function and completed the open edit account dialog