Cleaning up modal when closed

Signed-off-by: cameronbourke <cameron2295@gmail.com>