commiting the fragment handeling