working on permissions in gui