selected account now updates correctly in form and table