implmented offset top, left and parent properly