adding ajax to settings page and some error handling