Made start\stop buttons to work