implemented trial dialog