Development of a microfluidic design for an automatic lab-on-chip operation