adding error fragment