Added callback functions. Fixed active cell styling issue.