Worked on options.py

Added event handling in options.py