changes and fixes to permissions layout in accordance with bug 827782