added main frames and stuffs