added listener for save button. still need three more listeners