added loading spinner and poster directive