Actually call the appropriate function instead of just forwarding a the modal message to permalink