modified fragmentMain