Ui improvements

1) Made the arrows clickable. The click event was not occuring for the arrow icon when it was a children of <code>&lt;h3&gt;</code> tag, so i simply separated them and now its working just fine. 
2) Sorted the factors generated from factorint function.