Extracted modal functions, styled a little