modifying fragment template so border can be udpated