fixed layout issues and bugs in redirector, fixes dioscouri/amritasingh-f3#107