adding bg styling and fixing position of flags