setting up frame