change width from static to percentage