updated to lastest version of libraries.
Added a modal directive for the popups.