Added app select by role and logout