added gradient toggle