added start/stop button and create/start/stop functions