Fixed main layout spacing

Fixed weird layout params and added spacers so that it grows with the
space properly.