added actions to button
added NullFieldException, used for save function in Patient page