update poster function to work with multiple instances