Fix some redirect bugs, make small browser windows use smaller screen sizes