added the modal function for most stuff on dashboard