improving layouts, trying to work out problems with search function