Use position observer properly with initalize