refactored size selector and moved size selector into an own component