Adding functionality for modal dialog
Fixed bug with pager