fixed many bugs and select option