Change toolbar according to Fragment

I want to change the top toolbar according to clicked fragment but it seems not working for me.
What I want is when I click the fragment, the top toolbar should change. For example, add a Add button and change the title of the toolbar for Create Fragment.

Fragment.java

import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        setHasOptionsMenu(true);
        View v = inflater.inflate(R.layout.fragment_event_created, container, false);
        Toolbar toolbar123 = (Toolbar) v.findViewById(R.id.toolbar123);
        ((AppCompatActivity)getActivity()).setSupportActionBar(toolbar123);
        //((MainActivity) getActivity()).getSupportActionBar().hide();
        return v;
    }

Fragment XML

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.rick.check_in.ui.EventCreatedFragment">

<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/toolbar123"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#131313"
    android:minHeight="?attr/actionBarSize">

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="match_parent"
        android:layout_gravity="right"
        android:background="#00aaaaaa">

        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="#000"
            android:text="Delete"
            android:textColor="#fff"
            android:textSize="16dp" />

    </LinearLayout>


</android.support.v7.widget.Toolbar>
<!-- TODO: Update blank fragment layout -->
<TextView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:text="@string/hello_blank_fragment" />

</FrameLayout>

Change toolbar according to Fragment