many changes

added detach function
modified fixedheader function