changed to tablelayout for better code design