switched button binding to initialize event instead of show