functional button implemented!