reworked dismiss without animation