Added more buttons to control fragment and implemented simple communication between master and slave fragments