added main frame