cleanup after modal addition