button action script moved into separate file.