Can;t get frame to work