fixed different layouts for different sizes. Aded keyboard navigation