minor changes and added onclick update on redis