added variables in index and show actions in events controller and created events index view