submit = e => {
e.preventDefault();
if(this.state.page === 'edit') {
this.props.editCource(this.state.cource);
} else if( this.state.page === 'addCource') {
this.props.addNewCource(this.state.cource);
}
//redirect to '/';
};