adding callbacks and styles