widget plugin system

like a jquery plugin system.
fix bug that sticky element will not back to original position
ajust resize to widget system