Added invalid field message

Added url type checking and invalid field messages
Removed bug in event handlers for dialog show callbacks