added proper alert when access to library is not granted