Move library modal out of the library collection view, an example of how to do modals app wide.
Some changes to the backend