redirect code cleanup
fixed default empty page