fixed a small bug, got rid of Main.div