tweaking table layout. still need some work on image manipulation etc.