improves multiple click functions