Rough additions for dismiss button. Needs cleanup.