Moved random button from shell script to template