Add frame and onclick lister