core and main form