added code for all the commands. Also made slider map to dynamic variables