custom CSS options and optional auto close on location change
updated for branch additions