fixed some design issues in search and in devices