fixed modal not closing & sending back to dashboard each time