added phone number validation and fixed refresh mat view script