moved button script to external file