Added fragment change implementation, changes still required. It has not
been tested yet.