added some main frame functionality