feat(modal): Add 'controller' option

Added the possibility to add a controller function to the modal that is being shown.