moved resize binding to init