changes to settings page and implemented logic for saving and editing api details