Rebased: Fixed code and code style

Fixed code style

Fixed flash messages

Some correct style

Fixed search field

Fixed search when tag is not exist

Remove excess files