dropdown working with first click problem