setting up frame attributes