Created method that uses a cookies value for the widgets position and zIndex