basic struture for onclick