added modal and logout APIs