added integration code for add account dialog to backend open account function; fix bug with session get tablemodel before init and some query bugs for accounts