use core pki functionality and widgets
finished some uncomplete code for using core auth system