Added ajax functionality for new, edit, and show actions.