Added code to make button persistent. 

(fixed minor syntax error)