removed use of callback parameter. removed inline javascript