feat: add method for getting modal state