Cleanup.. remove localhost hardcoding and cap title if too long